from google.appengine.ext import db


class Tag(db.Model):
    name=db.StringProperty(required=True)
    createTime=db.DateTimeProperty(auto_now_add=True)
    describe=db.TextProperty()
    def __cmp__(self,other):
        return cmp(other.notetag_set.count(1000),self.notetag_set.count(1000))
    